<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>装维支撑信息管理系统登陆</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #1D3647;
}
-->
</style>
<script language="JavaScript">
function correctPNG()
{
    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
    if ((version >= 5.5) && (document.body.filters)) 
    {
       for(var j=0; j<document.images.length; j++)
       {
          var img = document.images[j]
          var imgName = img.src.toUpperCase()
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
          {
             var imgID = (img.id) ? "id='" + img.id + "' " : ""
             var imgClass = (img.className) ? "class='" + img.className + "' " : ""
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle
             if (img.align == "right") imgStyle = "float:right;" + imgStyle
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
             var strNewHTML = "<span " + imgID + imgClass + imgTitle
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML
             j = j-1
          }
       }
    }    
}
window.attachEvent("onload", correctPNG);
</script>
<script type="text/javascript">
	function KeyDown(){
	    if (event.keyCode == 13){
	        event.returnValue=false;
	        event.cancel = true;
	        check(loginForm);
	    }
	} 
	function check(theform)
	{
		if (theform.username.value=='')	{
		    alert("帐号不能为空！");
		    theform.username.focus();
		    return (false);
		  }
		if (theform.password.value=='') {
		    alert("密码不能为空！");
		    theform.password.focus();
		    return (false);
		  }		
		  theform.submit();
		  return (true);   
	}
	function resetBtn(fm){
	　　 fm.reset();
	 　　return false;
	}	
</script>

<link href="images/skin.css" rel="stylesheet" type="text/css">
</head>
<body>

<table width="100%" height="166" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="42" valign="top"><table width="100%" height="42" border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
      <tr>
        <td width="1%" height="21">&nbsp;</td>
        <td height="42">&nbsp;</td>
        <td width="17%">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" height="532" border="0" cellpadding="0" cellspacing="0" class="login_bg">
      <tr>
        <td width="49%" align="right"><table width="91%" height="532" border="0" cellpadding="0" cellspacing="0" class="login_bg2">
            <tr>
              <td height="138" valign="top"><table width="89%" height="427" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="149">&nbsp;</td>
                </tr>
                <tr>
                  <td height="70" align="right" valign="top">&nbsp;</td>
                </tr>
                <tr>
                  <td height="198" align="right" valign="top"><img src="images/logo.png" width="279" height="68"></td>
                </tr>
              </table></td>
            </tr>
            
        </table></td>
        <td width="1%" >&nbsp;</td>
        <td width="50%" valign="bottom">
        	<table width="100%" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="4%">&nbsp;</td>
              <td width="96%" height="45">
                <p class="login_txt_bt">欢迎使用，请登陆！</p></td>
            </tr>
            <tr>
            	<td width="4%">&nbsp;</td>
                <td width="96%" height="25" valign="top"><s:if test="hasActionMessages()"><div class="info"><s:property value="actionMessages[0]"/></div></s:if></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td height="21"><table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table211" height="280">
                  <tr>
                    <td height="140" colspan="2">
                    <form name="loginForm" action="Login.action" method="post">
                        <table cellSpacing="0" cellPadding="0" width="100%" border="0" height="108" id="table212">
                          <tr>
                            <td width="13%" height="38" class="top_hui_text"><span class="login_txt">帐 号：</span></td>
                            <td height="38" colspan="2" class="top_hui_text"><input id="username" name="user.username" type="text" class="editbox4" style="width:180px" value="" size="20">                            </td>
                          </tr>
                          <tr>
                            <td width="13%" height="35" class="top_hui_text"><span class="login_txt"> 密 码：</span></td>
                            <td height="35" colspan="2" class="top_hui_text"><input class="editbox4" id="password" type="password"  style="width:180px" size="20" name="user.password"></td>
                          </tr>
                          <tr>
                            <td height="35" >&nbsp;</td>
                            <td width="17%" height="35" ><input name="Submit" type="submit" class="button" id="Submit" onclick="javascript:check(loginForm);return false;" value="登陆"></td>
                            <td width="70%" class="top_hui_text"><input name="cs" type="button" class="button" id="cs" value="重置"  onclick = "javascript:resetBtn(loginForm);return false; "></td>
                          </tr>
                           
                        </table>
                        <br>
                    </form></td>
                  </tr>
                 
                  <tr>
                    <td width="433" height="164" align="right" valign="bottom"><img src="images/login-wel.gif" width="242" height="138"></td>
                    <td width="57" align="right" valign="bottom">&nbsp;</td>
                  </tr>
                   
              </table></td>
            </tr>
          </table>
          </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
      <tr>
        <td align="center"><span class="login-buttom-txt">Copyright &copy; 2011 盐城电信 <a href="ChangeLog.txt">Version2.1</a></span></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
